﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SpotItComponents
{
    /// <summary>
    /// DeckSetupDirectorForSelectedSymbols
    /// 
    /// Use this setup director to create a deck from the selected symbols in the symbol set.
    /// </summary>
    public class DeckSetupDirectorUsingSelectedSymbols : DeckSetupDirector
    {
        protected override Universe FindUniverseBasedOnSymbols()
        {
            return Universe.FindUniverseBasedOnSymbols(FromSymbolSet.SelectedSymbols.Count);
        }

        protected override bool SelectSymbols(int numberOfSymbols)
        {
            return FromSymbolSet.RandomlySelectSymbols(numberOfSymbols);
        }

        protected override Symbol GetSymbolByIndex(int index)
        {
            return FromSymbolSet.SelectedSymbols[index];
        }

    }
}
